.class final Lcom/adwo/adsdk/N;
.super Landroid/os/AsyncTask;
.source "SourceFile"


# instance fields
.field private synthetic a:Lcom/adwo/adsdk/AdwoAdView;


# direct methods
.method constructor <init>(Lcom/adwo/adsdk/AdwoAdView;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    .line 150
    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/adwo/adsdk/N;)Lcom/adwo/adsdk/AdwoAdView;
    .locals 1
    .parameter

    .prologue
    .line 150
    iget-object v0, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    return-object v0
.end method

.method private varargs a()Lcom/adwo/adsdk/k;
    .locals 3

    .prologue
    .line 154
    :try_start_0
    iget-object v0, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-virtual {v0}, Lcom/adwo/adsdk/AdwoAdView;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 156
    invoke-static {}, Lcom/adwo/adsdk/AdwoAdView;->e()B

    move-result v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/adwo/adsdk/p;->a(Landroid/content/Context;BB)Lcom/adwo/adsdk/k;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 161
    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method protected final varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    invoke-direct {p0}, Lcom/adwo/adsdk/N;->a()Lcom/adwo/adsdk/k;

    move-result-object v0

    return-object v0
.end method

.method protected final synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 9
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 1
    move-object v0, p1

    check-cast v0, Lcom/adwo/adsdk/k;

    move-object v3, v0

    invoke-super {p0, v3}, Landroid/os/AsyncTask;->onPostExecute(Ljava/lang/Object;)V

    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-virtual {v1}, Lcom/adwo/adsdk/AdwoAdView;->getContext()Landroid/content/Context;

    move-result-object v7

    if-eqz v3, :cond_7

    iget-object v1, v3, Lcom/adwo/adsdk/k;->c:Lcom/adwo/adsdk/ErrorCode;

    if-nez v1, :cond_5

    monitor-enter p0

    :try_start_0
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->b(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/b;

    move-result-object v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->b(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/adwo/adsdk/b;->a()Lcom/adwo/adsdk/k;

    move-result-object v1

    invoke-virtual {v3, v1}, Lcom/adwo/adsdk/k;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    const/4 v2, 0x0

    iput-boolean v2, v1, Lcom/adwo/adsdk/AdwoAdView;->a:Z

    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v1

    if-eqz v1, :cond_0

    :try_start_1
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-interface {v1, v2}, Lcom/adwo/adsdk/AdListener;->onFailedToReceiveRefreshedAd(Lcom/adwo/adsdk/AdwoAdView;)V

    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-interface {v1, v2}, Lcom/adwo/adsdk/AdListener;->onReceiveAd(Lcom/adwo/adsdk/AdwoAdView;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_3

    :cond_0
    :goto_0
    :try_start_2
    monitor-exit p0

    :cond_1
    :goto_1
    return-void

    :cond_2
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->b(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/b;

    move-result-object v1

    if-nez v1, :cond_4

    const/4 v1, 0x1

    move v6, v1

    :goto_2
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->d(Lcom/adwo/adsdk/AdwoAdView;)I

    move-result v5

    new-instance v4, Lcom/adwo/adsdk/b;

    invoke-direct {v4, v3, v7}, Lcom/adwo/adsdk/b;-><init>(Lcom/adwo/adsdk/k;Landroid/content/Context;)V

    invoke-virtual {v4, v5}, Lcom/adwo/adsdk/b;->setVisibility(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-static {}, Lcom/adwo/adsdk/AdwoAdView;->b()I

    move-result v2

    invoke-static {}, Lcom/adwo/adsdk/AdwoAdView;->c()I

    move-result v8

    invoke-direct {v1, v2, v8}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xe

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v4, v1}, Lcom/adwo/adsdk/b;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move-result-object v1

    if-eqz v1, :cond_3

    :try_start_3
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-interface {v1, v2}, Lcom/adwo/adsdk/AdListener;->onReceiveAd(Lcom/adwo/adsdk/AdwoAdView;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

    :cond_3
    :goto_3
    :try_start_4
    invoke-static {}, Lcom/adwo/adsdk/AdwoAdView;->f()Landroid/os/Handler;

    move-result-object v8

    new-instance v1, Lcom/adwo/adsdk/O;

    move-object v2, p0

    invoke-direct/range {v1 .. v7}, Lcom/adwo/adsdk/O;-><init>(Lcom/adwo/adsdk/N;Lcom/adwo/adsdk/k;Lcom/adwo/adsdk/b;IZLandroid/content/Context;)V

    invoke-virtual {v8, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit p0

    throw v1

    :cond_4
    move v6, v2

    goto :goto_2

    :cond_5
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    if-eqz v1, :cond_1

    :try_start_5
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-interface {v1, v2}, Lcom/adwo/adsdk/AdListener;->onFailedToReceiveAd(Lcom/adwo/adsdk/AdwoAdView;)V

    if-eqz v3, :cond_6

    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    iget-object v3, v3, Lcom/adwo/adsdk/k;->c:Lcom/adwo/adsdk/ErrorCode;

    invoke-interface {v1, v2, v3}, Lcom/adwo/adsdk/AdListener;->onFailedToReceiveAd(Lcom/adwo/adsdk/AdwoAdView;Lcom/adwo/adsdk/ErrorCode;)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0

    goto :goto_1

    :catch_0
    move-exception v1

    const-string v2, "Adwo SDK"

    invoke-virtual {v1}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_1

    :cond_6
    :try_start_6
    new-instance v1, Lcom/adwo/adsdk/ErrorCode;

    const/16 v2, -0x16

    const-string v3, "ERR_SOCKET_TIMEOUT"

    invoke-direct {v1, v2, v3}, Lcom/adwo/adsdk/ErrorCode;-><init>(ILjava/lang/String;)V

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v2}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v2

    iget-object v3, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-interface {v2, v3, v1}, Lcom/adwo/adsdk/AdListener;->onFailedToReceiveAd(Lcom/adwo/adsdk/AdwoAdView;Lcom/adwo/adsdk/ErrorCode;)V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0

    goto/16 :goto_1

    :cond_7
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    if-eqz v1, :cond_1

    :try_start_7
    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-interface {v1, v2}, Lcom/adwo/adsdk/AdListener;->onFailedToReceiveAd(Lcom/adwo/adsdk/AdwoAdView;)V

    if-eqz v3, :cond_8

    iget-object v1, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v1}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v1

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    iget-object v3, v3, Lcom/adwo/adsdk/k;->c:Lcom/adwo/adsdk/ErrorCode;

    invoke-interface {v1, v2, v3}, Lcom/adwo/adsdk/AdListener;->onFailedToReceiveAd(Lcom/adwo/adsdk/AdwoAdView;Lcom/adwo/adsdk/ErrorCode;)V
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_1

    goto/16 :goto_1

    :catch_1
    move-exception v1

    const-string v2, "Adwo SDK"

    invoke-virtual {v1}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_1

    :cond_8
    :try_start_8
    new-instance v1, Lcom/adwo/adsdk/ErrorCode;

    const/16 v2, -0x16

    const-string v3, "ERR_SOCKET_TIMEOUT"

    invoke-direct {v1, v2, v3}, Lcom/adwo/adsdk/ErrorCode;-><init>(ILjava/lang/String;)V

    iget-object v2, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-static {v2}, Lcom/adwo/adsdk/AdwoAdView;->c(Lcom/adwo/adsdk/AdwoAdView;)Lcom/adwo/adsdk/AdListener;

    move-result-object v2

    iget-object v3, p0, Lcom/adwo/adsdk/N;->a:Lcom/adwo/adsdk/AdwoAdView;

    invoke-interface {v2, v3, v1}, Lcom/adwo/adsdk/AdListener;->onFailedToReceiveAd(Lcom/adwo/adsdk/AdwoAdView;Lcom/adwo/adsdk/ErrorCode;)V
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_1

    goto/16 :goto_1

    :catch_2
    move-exception v1

    goto/16 :goto_3

    :catch_3
    move-exception v1

    goto/16 :goto_0
.end method

.method protected final onPreExecute()V
    .locals 0

    .prologue
    .line 311
    invoke-super {p0}, Landroid/os/AsyncTask;->onPreExecute()V

    .line 312
    return-void
.end method
